﻿<%@ Page Language="C#" MasterPageFile="~/Calendar/CalenderMasterPage.master" AutoEventWireup="true" Inherits="calendar.year.yearPage" Title="Untitled Page" meta:resourcekey="ML_0000" Codebehind="year.aspx.cs" %>

<%@ Import Namespace="calendar.year" %>
<%@ Import Namespace="calendar.Configuration" %>
<%@ Import Namespace="calendar.Data" %>
<%@ Register TagPrefix="calendar" TagName="infopanel" Src="infopanel.ascx" %>
<%@ Register TagPrefix="CC" Namespace="calendar.Controls" Assembly="OpenSIS" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="JavaScript" type="text/javascript">
        function show(divID) {
           
    document.getElementById('div' + divID).style.visibility = "visible";
    
}

function hide(divID) {
  document.getElementById('div'+divID).style.visibility = "hidden";
}
    </script>

    <script language="JavaScript" type="text/javascript">
//Begin CCS script
//End CCS script
    </script>

    <asp:UpdatePanel ID="PanelYear" runat="server">
        <ContentTemplate>
            <table cellspacing="5" cellpadding="0" border="0" width="100%" >
            
         
                <tr>
                    <td valign="top">
                        <calendar:infopanel ID="infopanel" runat="server" meta:resourcekey="infopanel"/>
                    </td>
                    <td valign="top" width="100%">
                        <CC:Calendar ID="year_events" OnItemDataBound="year_eventsItemDataBound" MonthsInRow="4"
                            Mode="Full" runat="server">
                            <weekdaynamestyle class="CalendarWeekdayName" />
                            <weekendnamestyle class="CalendarWeekdayName" />
                            <daystyle class="CalendarDay" />
                            <weekendstyle class="CalendarWeekend" />
                            <todaystyle class="CalendarToday" />
                            <weekendtodaystyle class="CalendarWeekendToday" />
                            <othermonthdaystyle class="CalendarOtherMonthDay" />
                            <othermonthtodaystyle class="CalendarOtherMonthToday" />
                            <othermonthweekendstyle class="CalendarOtherMonthWeekend" />
                            <othermonthweekendtodaystyle class="CalendarOtherMonthWeekendToday" />
                            <HolidayStyle class="CalendarHoliday" />
                            <HeaderTemplate>
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <table class="Header" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr>
                                                    <td class="HeaderLeft">
                                                        <div style="width:17px;"></div>
                                                    </td>
                                                    <th>
                                                        <asp:Literal ID="ltrlYearEvent" runat="server" meta:resourcekey="ML_0004">Yearly Events </asp:Literal><%--<%=Resources.strings.yearevents%>--%><asp:Literal ID="ML_0008" runat="server" meta:resourcekey="ML_0008">,</asp:Literal>
                                                        <asp:Literal ID="year_eventsCurYearLabel" runat="server" meta:resourcekey="year_eventsCurYearLabel"></asp:Literal>
                                                    </th>
                                                    <td class="HeaderRight">
                                                        <div style="width:17px;"></div>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table class="Calendar" cellspacing="3" cellpadding="0">
                                                <tr valign="top">
                            </HeaderTemplate>
                            <MonthHeaderTemplate>
                                <td>
                                    <table class="Grid" cellspacing="0" cellpadding="0">
                                        <tr class="Caption">
                                            <th colspan="8">
                                            
                                                <a id="year_eventsMonthDate" href="" runat="server" >
                                               
                                                <asp:Label ID="lblmonth" runat="server" Text=' <%#((DateTime)Container.CurrentProcessingDate).ToString("MMMM")%>'></asp:Label>
                                                   <%-- <%#((DateTime)Container.CurrentProcessingDate).ToString("MMMM")%>--%>
   
   </a>
                                            </th>
                                        </tr>
                                        <tr>
                            </MonthHeaderTemplate>
                            <WeekDaysTemplate>
                                <td width="14.29%"  '<%#Container.StyleString%>'">
                                    <asp:Literal ID="year_eventsDayOfWeek" Text='<%# Server.HtmlEncode(new DateField("ddd",Container.CurrentProcessingDate).GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                        runat="server" />
                                </td>
                            </WeekDaysTemplate>
                            <WeekDaysFooterTemplate>
                                <asp:PlaceHolder ID="year_eventsGoWeekHeader" Visible="True" runat="server">
                                    <td class="CalendarWeekdayName">
                                        &nbsp;
                                    </td>
                                </asp:PlaceHolder>
                            </WeekDaysFooterTemplate>
                            <WeekHeaderTemplate>
                                </tr>
                                <tr>
                            </WeekHeaderTemplate>
                            <DayHeaderTemplate>
                      <td  '<%#Container.StyleString%>'><a id="year_eventsDayNumber" href="" runat="server"  ><%#((DateTime)Container.CurrentProcessingDate).ToString("%d")%></a> <asp:Literal id="year_eventsdiv_begin" runat="server"/>
                            </DayHeaderTemplate>
                            <EventRowTemplate>
                                <div class="CalendarEvent" >
                                    <nobr>
                          <asp:Image id="year_eventsCategoryImage"  hspace="3" ImageUrl="~/App_Themes/main/imagescalendar/categories/" vspace="3" runat="server"/><asp:Literal id="year_eventsEventTime" Text='<%# Server.HtmlEncode(((year_eventsItem)Container.DataItem).EventTime.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>' runat="server"/><asp:Literal id="year_eventsEventTimeEnd" Text='<%# Server.HtmlEncode(((year_eventsItem)Container.DataItem).EventTimeEnd.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>' runat="server"/> 
                         
                           <font color="#824b1e" size="1"> <asp:Literal id="year_eventsEventDescription" Text='<%# Server.HtmlEncode(((year_eventsItem)Container.DataItem).EventDescription.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>' runat="server" /> 
                           
                          
                           </font>
                          
                          </nobr>
                                </div>
                            </EventRowTemplate>
                            <DayFooterTemplate>
                                <asp:Literal ID="year_eventsdiv_end" runat="server" /></td>
                            </DayFooterTemplate>
                            <EmptyDayTemplate>
                                <td class="CalendarOtherMonthDay">
                                    &nbsp;
                                </td>
                            </EmptyDayTemplate>
                            <WeekFooterTemplate>
                             <%--//changed on 25thjune2009 "false" added to the anchor tag--%>
                                <asp:PlaceHolder ID="year_eventsGoWeekPanel" Visible="true" runat="server">
                                    <td class="CalendarWeekend">
                                        <a id="year_eventsGoWeek" href="" runat="server" visible="false">
                                            <img border="0" src="../App_Themes/main/styles/Blueprint/Images/WeekView.png" /></a>
                                  <%--//changed on 25thjune2009 "false" added to the anchor tag--%>
                                  
                                    </td>
                                </asp:PlaceHolder>
                                </tr>
                            </WeekFooterTemplate>
                            <MonthFooterTemplate>
                                </table> </td></MonthFooterTemplate>
                            <MonthsRowSeparatorTemplate>
                                </tr>
                                <tr valign="top">
                            </MonthsRowSeparatorTemplate>
                            <FooterTemplate>
                                </tr></table> </td> </tr> </table>
                                <div class="CalendarNavigator">
                                <table width="100%" cellpadding="0" cellspacing="0"><tr>
                                    <td colspan="<%#Container.Owner.MonthsInRow.ToString()%>"
                                        style="text-align: left;">
                                        <CC:CalendarNavigator ID="year_eventsNavigator" YearsRange="15" Order="MonthsQuartersYears"
                                            runat="server">
                                            <HeaderTemplate>
                                                <input type="hidden" value='<%#PageVariables.Get("CalendarName")%>' name="ccsForm" />
                                                <table>
                                                    <tr>
                                            </HeaderTemplate>
                                            <Prev_YearTemplate>
                                                <td>
                                                    <a title="Prev Year" href="<%#Container.Url%>">
                                                        <img src="../App_Themes/main/styles/Blueprint/Images/Back.png" border="0" /></a>
                                                </td>
                                            </Prev_YearTemplate>
                                            <YearsHeaderTemplate>
                                                <td>
                                                    <select name="<%#Container.CalendarName%>Year">
                                            </YearsHeaderTemplate>
                                            <RegularYearTemplate>
                                                <option value="<%#Container.Date.Year.ToString()%>">
                                                    <%#Container.Date.Year.ToString()%></option>
                                            </RegularYearTemplate>
                                            <CurrentYearTemplate>
                                                <option value="<%#Container.Date.Year.ToString()%>" selected>
                                                    <%#Container.Date.Year.ToString()%></option>
                                            </CurrentYearTemplate>
                                            <YearsFooterTemplate>
                                                </select> </td>
                                            </YearsFooterTemplate>
                                            <BodyTemplate>
                                                <td>
                                                    <div>
                                                    <input type="image" src='<%#"../App_Themes/main/styles/" + PageStyleName+"/Images/"+Session["MLUICulture"].ToString()+"-Go.gif"%>'
                                                        value="Submit" border="0"></div>
                                                </td>
                                            </BodyTemplate>
                                            <Next_YearTemplate>
                                                <td>
                                                    <a title="Next Year" href="<%#Container.Url%>">
                                                        <img src="../App_Themes/main/styles/Blueprint/Images/Forward.png" border="0" /></a>
                                                </td>
                                            </Next_YearTemplate>
                                            <FooterTemplate>
                                                </tr> </table>
                                            </FooterTemplate>
                                        </CC:CalendarNavigator>
                                    </td>
                                </tr></table></div>
                                
                            </FooterTemplate>
                        </CC:Calendar>
                        <br>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
